#pragma once
#include "afxwin.h"
#include "TEX0_SDK.h"
#include "afxcmn.h"
#include "TEX0_Types.h"

class CTEX0_Sheet;

// TEX0_ConferencePage dialog

class CTEX0_ConferencePage : public CPropertyPage
{
	DECLARE_DYNAMIC(CTEX0_ConferencePage)

public:
	CTEX0_ConferencePage();   // standard constructor
	virtual ~CTEX0_ConferencePage();

// Dialog Data
	enum { IDD = IDD_DLG_CONFERENCE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()


private:
	CTEX0_Sheet* m_sheet;

public:
	TerminalState m_terminalState;
	void SetSheet(CTEX0_Sheet* sheet) {m_sheet = sheet;}
	afx_msg void OnBnClickedButtonAddressBook();
private:
	CListCtrl m_siteList;
	vector<SiteAddrRecord> m_selSiteAddress;
	ConfInfo m_confInfo;
	vector <char *>  m_nameList;
	
public:
	void UpdateSiteList();
	void ClearSiteList();
	afx_msg void OnClickSiteList(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedCreateConference();
	afx_msg void OnBnClickedRequestChair();
	afx_msg void OnBnClickedQuerySiteLit();
	afx_msg void OnBnClickedDeleteSite();
	afx_msg void OnBnClickedMute();
	afx_msg void OnBnClickedUnmute();
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedEndConf();
	afx_msg void OnBnClickedReleaseChair();
	afx_msg void OnBnClickedAddSite();
	afx_msg void OnBnClickedIsSendAux();
	afx_msg void OnBnClickedStopSendAux();
	afx_msg void OnBnClickedStartSendAux();
};
